package info.motteke.mixivoice4j.http.json.comment.create;

import info.motteke.mixivoice4j.Body;
import info.motteke.mixivoice4j.User;
import net.arnx.jsonic.JSONHint;

import org.jsoup.Jsoup;

public class CreateCommentResultInfo {

    private String body;

    private User user;

    private String displayName;

    private String image;

    private long postedTime;

    public Body getBody() {
        return new Body(Jsoup.parse(body).select("body").get(0));
    }

    public void setBody(String body) {
        this.body = body;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @JSONHint(name = "display_name")
    public String getDisplayName() {
        return displayName;
    }

    @JSONHint(name = "display_name")
    public void setDisplayName(String displayName) {
        this.displayName = displayName;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }


    @JSONHint(name = "posted_time")
    public long getPostedTime() {
        return postedTime;
    }

    @JSONHint(name = "posted_time")
    public void setPostedTime(long postedTime) {
        this.postedTime = postedTime;
    }
}